{php include template("admin/header");}
<div class="midder">
    {php include template("admin/menu");}
    <div>
        <table>
            <tr class="old"><td>积分名称</td><td>key</td><td>分数</td><td>对应app</td><td>对应action</td><td>对应ts</td><td>状态</td><td>设置</td>
            </tr>
            {loop $arrScore $key $item}
            <form method="post" action="{SITE_URL}index.php?app=user&ac=admin&mg=score&ts=editdo">
                <tr class="odd"><td>{$item['scorename']}</td><td>{$item['scorekey']}</td><td><input style="width:50px" name="score" value="{$item['score']}" /></td><td><input style="width:50px" name="app" value="{$item['app']}" /></td><td><input style="width:50px" name="action" value="{$item['action']}" /></td><td><input style="width:50px" name="ts" value="{$item['ts']}" /></td><td><select name="status"><option value="0" {if $item['status']=='0'}selected{/if}>加积分</option><option value="1" {if $item['status']=='1'}selected{/if}>减积分</option></select></td><td><input type="hidden" name="scoreid" value="{$item['scoreid']}" /><input type="submit" value="修改" /> | <a href="{SITE_URL}inex.php?app=user&ac=admin&mg=score&ts=delete&scoreid={$item['scoreid']}" onclick="return confirm('确定删除吗？')">删除</a></td></tr>
            </form>
            {/loop}
        </table>
    </div>
    <div>
        <h2>添加积分</h2>
        <form method="post" action="{SITE_URL}index.php?app=user&ac=admin&mg=score&ts=adddo">
            <table>
                <tr><td width="200">积分名称：</td><td><input type="text" name="scorename" /></td></tr>
                <tr><td>积分KEY：</td><td><input type="text" name="scorekey" /></td></tr>
                <tr><td>积分：</td><td><input type="text" name="score" /></td></tr>
                <tr><td>对应APP：</td><td><input type="text" name="app" /></td></tr>
                <tr><td>对应ACTION：</td><td><input type="text" name="action" /></td></tr>
                <tr><td>对应TS：</td><td><input type="text" name="ts" /></td></tr>
                <tr><td>状态：</td><td><input type="radio" name="status" value="0" checked="select" />加积分 <input type="radio" name="status" value="1" />减积分</td></tr>
                <tr><td></td><td><input type="submit" value="提交" /></td></tr>
            </table>
        </form>
    </div>
    <div>
        <h2>积分使用帮助</h2>
        <p>1、在需要使用积分的php代码处加：</p>
        <code>
            aac('user')->doScore({php echo '$app'},{php echo '$ac'},{php echo '$ts'})
        </code>
        <p>以上代码具体使用方式请看app/user/class.user.php中doScore方法</p>
        <p>2、根据对应的app,action,ts变量配置好积分</p>
    </div>
</div>{php include template("admin/footer");}